<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>反馈记录</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/member.css"/>
    <script type="text/javascript" src="../../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../../script/mobile.js"></script>
    <script type="text/javascript">
        window['adaptive'].desinWidth = 750;
        window['adaptive'].baseFont = 28;
        window['adaptive'].maxWidth = 750;
        window['adaptive'].init();
    </script>
</head>

<body>
<div id="header" style="height: 0.9rem; background: #fff; position: fixed; top: 0;left: 0; width: 100%; z-index: 99">
    <header class="header header-shadow">
        <div class="header-left">
            <div tapmode onclick="comeBack();" class="nav-left"><img class="icon-back" src="../../icon/icon-back.png"/>
            </div>
        </div>
        <h2>反馈记录</h2>
    </header>
</div>
<div class="mescroll" id="mescroll" style="padding-top: 1.5rem">
    <section class="html_section pr30 pl30 ">
        <ul class="yj_list">
            <!--<li>
                <div class="yjimg"><img src="../../image/img-tx.png"/></div>
                <div class="yjContent">
                    <div class="f30">无法登陆</div>
                    <div class="between line_center"><span class="f24 c-999">10分钟前</span>
                        <div class="yj_state yj_state1"></div>
                    </div>
                    <div class="f26 c-666 multiline-ellipsis">登陆的时候显示系统异常，退了重上也不行，手机都重启了，还这样...</div>
                </div>
            </li>
            <li>
                <div class="yjContent">
                    <div class="f30">无法登陆</div>
                    <div class="between line_center"><span class="f24 c-999">10分钟前</span>
                        <div class="yj_state yj_state1"></div>
                    </div>
                    <div class="f26 c-666 multiline-ellipsis">登陆的时候显示系统异常，退了重上也不行，手机都重启了，还这样...</div>
                </div>
            </li>-->
        </ul>

    </section>
</div>
</body>

</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/mescroll.min.css"/>
<script type="text/javascript" src="../../script/mescroll.min.js"></script>
<script type="text/javascript">
    var page = 1;
    var ifpage = true;
    apiready = function () {
        setFixStatusBar(); //设置状态栏
        keybackListener()
        //上拉加载
        /*pullUpLoading(function () {
            if (ifpage) {
                page++;
                ready();
            }
        });*/
        //下拉刷新
        /*dropDownRefresh(function () {
            page = 1
            ready();
        })*/
        ready();
    }

    //创建MeScroll对象
    var mescroll = new MeScroll("mescroll", {
        down: {
            auto: false, //是否在初始化完毕之后自动执行下拉回调callback; 默认true
            callback: downCallback //下拉刷新的回调
        }
    });
    /*下拉刷新的回调 */
    function downCallback() {
        ready()
        //mescroll.endErr();
    }
    /*上拉加载的回调 */
    /*function upCallback() {
        if (ifpage == true) {
            page++;
            ready();
        }else {
            mescroll.endErr();
        }
    }*/

    function ready() {
        pop.loading();
        getAjax(Interface.get_contribute, {
            token: $api.getStorage('token'),
            // page: page,
            type: 1
        }, function (res) {
            pop.close();
            var list = res.data;
            if(isDefine(list)){
                var html = '';
                $.each(list, function (i, item) {
                    html += '<li>';
                    if (isDefine(item.icon_path))
                        html += '<div class="yjimg"><img src="' + getImg(item.icon_path) + '" /></div>';
                    html += '<div class="yjContent">';
                    html += '<div class="f30">' + item.category_title + '</div>';
                    html += '<div class="between line_center"><span class="f24 c-999">' + item.create_date + '</span>';
                    html += '<div class="yj_state yj_state' + item.status + '"></div>';
                    html += '</div>';
                    html += '<div class="f26 c-666 ">' + item.content + '</div>';
                    html += '</div>';
                    html += '</li>';
                })

                $(".yj_list").html(html);
            }else {
                $(".yj_list").html(noData);
            }
            pop.close();
            mescroll.endErr()
        }, function (res, err) {

            pop.close();
            mescroll.endErr()
        })
    }
</script>
